<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="editgroup.aspx.cs" Inherits="GleamTech.FileVista.EditGroupPage" EnableEventValidation="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%=InsertInfo%>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><%=language.GetString("546")%></title>
    	<link href="filevistacontrol/styles/default.css" rel="stylesheet" />
		<script src="filevistacontrol/scripts/library/utility.js" type="text/javascript"></script>
        <script src="scripts/administration.js" type="text/javascript"></script>		
    </head>
    <body id="BodyTag" runat="server" class="dialog">
        <form id="form1" runat="server">
            <asp:HiddenField ID="ClientMessage" runat="server" />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false" />
			<table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%;">
                <tr valign="top">
                    <td>
                        <table cellpadding="4" cellspacing="0" border="0" class="generalText">
				            <tr>
				                <td style="width: 100px"><%=language.GetString("556")%></td>
				                <td>
				                    <asp:TextBox ID="GroupName" runat="server" style="width: 250px" MaxLength="30"></asp:TextBox>
				                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="GroupName">!</asp:RequiredFieldValidator>
			                   </td>
			                </tr>
				            <tr><td><%=language.GetString("557")%></td><td><asp:TextBox ID="Description" runat="server" style="width: 250px" MaxLength="100"></asp:TextBox></td></tr>
				            <tr><td colspan="2"><hr /></td></tr>
                            <tr>
                                <td colspan="2">
                                    <div id="divMembers">
                                        <table cellpadding="0" cellspacing="0" border="0" class="generalText">
                                            <tr>
                                                <td style="height: 180px;">
                                                    <%=language.GetString("558")%>
                                                    <asp:ListBox ID="MembersListBox" runat="server" style="width: 160px; height: 125px;" Rows="2"></asp:ListBox>
                                                    <br /><asp:Button ID="Button3" runat="server" style="width: 80px" OnClientClick="EditGroupPage.showDivAddMembers(); return false;" />
                                                    <asp:Button ID="Button4" runat="server" style="width: 80px" OnClientClick="EditGroupPage.removeSelected(); return false;"/>
                                                    <asp:HiddenField ID="ListBoxValues" runat="server" />
                                                </td>
                                                <td style="width: 200px;" valign="top">
                                                    <br />
                                                    <fieldset><legend style="color:black; text-align:center"><%=language.GetString("559")%><br /><span id="Legend1" style="font-weight:bold; width: 90px">&nbsp;</span></legend>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" />
                                                        <br /><br />
                                                    </fieldset>
                                                </td>
                                            </tr>
                                        </table>
                                        <br /><br /><br /><br /><br /><br /><br />
                                    </div>
                                    <div id="divAddMembers" style="display: none;">
                                        <fieldset><legend style="color:black; text-align:center"><%=language.GetString("560")%></legend>
                                            <table cellpadding="4" cellspacing="0" border="0" class="generalText" align="center">
                                                <tr>
                                                    <td><%=language.GetString("561")%></td>
                                                    <td>
                                                        <input id="SearchCriteria" type="text" style="width: 160px" maxlength="30" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td></td>
                                                    <td>
                                                        <asp:Button ID="Button7" runat="server" OnClientClick="EditGroupPage.searchUsers(); return false;" Style="width: 80px" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top"><%=language.GetString("562")%></td>
                                                    <td>
                                                        <select id="SearchResults" size="2" style="width: 160px; height: 150px;" multiple onchange="EditGroupPage.onSRListBoxChange()"></select>
                                                        <br /><br /><asp:Button ID="Button5" runat="server" OnClientClick="EditGroupPage.addSelected(); return false;" Style="width: 80px" />&nbsp;<asp:Button ID="Button6" runat="server" OnClientClick="EditGroupPage.showDivMembers(); return false;" Style="width: 80px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </div>                                      
                               </td>
                            </tr>  
                        </table>
                    </td>                
                </tr>
			</table>
			<div style="position:absolute; right:5px; bottom:10px"><asp:Button ID="Button1" runat="server" style="width: 80px" OnClick="Button1_Click" OnClientClick="EditGroupPage.onPageSubmit()" />&nbsp;<asp:Button ID="Button2" runat="server" style="width: 80px" OnClientClick="parent.ModalDialog.close(); return false;" /></div>
        </form>
    </body>
</html>
